Replication materials: "Gender Differences in the Impact of Electoral Victory on Satisfaction with Democracy” by Neil S. Williams, Alexandra Snipes, and Shane P. Singh. Electoral Studies. 

Below is a description of the data and analysis files, as well as instructions for the replication of the content of all tables and figures. All analyses were conducted using Stata/SE Version 16.1 for Mac or R version 3.6.0 for Mac. 



********************************************
***************NECESSARY FILES**************
********************************************
Williams_etal_ES_replication.do	Contains Stata code for reproducing the analyses and figures in the main text and appendix

Williams_etal_ES_replication.dta	Contains data, in Stata 16 format, from Modules 1-4 of the CSES, from the CSES Integrated Module Dataset (IMD), information on GDP per capita from the World Bank’s World Development Indicators, and Polity IV scores from the Center for Systemic Peace. Other data on proportion of women in legislature, executive roles, and gender quotas is sourced from the eight wave of the Varieties of Democracy (V-Dem) Project.


Predicted probability data from multilevel models, in .xlsx format, for the reproduction of Figures 1-3 and A.1-3 in R. These files are listed below:

	hyp1_diff_exec.xlsx	hyp1_diff_gov.xlsx	hyp1_executive_ES.xlsx	hyp1_government_ES.xlsx	hyp2_exec_legis.xlsx	hyp2_gov_legis.xlsx	hyp2_hog_diff_exec.xlsx	hyp2_hog_diff_gov.xlsx	hyp2_hog_exec.xlsx	hyp2_hog_gov.xlsx	hyp2_legis_diff_exec.xlsx	hyp2_legis_diff_gov.xlsx	hyp2_legis_gov.xlsx		



Williams_etal_ES_figures.R	Contains R code for reproducing Figures 1-3 and A.1-A.5 in R 





********************************************
****INSTRUCTIONS AND FURTHER DESCRIPTION****
********************************************
1. Put the data files, Williams_etal_ES_replication.dta and the predicted probabilities in the same folder. You will need to set your working directory in Stata and R to this folder. 

2. Open and run “Williams_etal_ES_replication.do”. The code will reproduce the numerical results and predicted probabilities shown in the article and appendix. The code also includes analyses that support claims made in the text that do not appear in the tables or figures. 

3. Open and run “Williams_etal_ES_replication.R”. The code will reproduce Figures 1-3 and Figure A.1-A.5 of the appendix.  


********************************************
*************DATASET CITATIONS**************
******************************************** 

The Comparative Study of Electoral Systems (www.cses.org). CSES INTEGRATED MODULE DATASET (IMD) [dataset and documentation]. October 17, 2019 version. doi:10.7804/cses.imd.2019-10-17


Coppedge, Michael, Gerring, John, Carl Henrik, Knutsen, Lindberg, Staffan I., Svend- Erik, Skaaning, Jan, Teorell, Altman, David, Bernhard, Michael, Fish, M Steven, Cornell, Agnes, et al., 2018. V-dem [Country-Year/Country-Date] Dataset V8. Varieties of Democracy (V-Dem). 

Center for Systemic Peace. 2020. Polity IV Data: Polity-Case Format, 1800-2018. Vienna, VA.

The World Bank. 2020. World Development Indicators. Washington, D.C.





********************************************
*************CONTACT INFORMATION************
********************************************
Neil S. Williams
snpwill@uga.edu
www.neilswililams.com




